#include<iostream>
#include<Windows.h>
using namespace std;
int main17_2demo()
{//水仙花
	SetConsoleOutputCP(65001);
	int num = 100;
	do
	{
		int a = 0, b = 0, c = 0;	//个 十 百
		a = num % 10;
		b = (num / 10) % 10;
		c = num / 100;
		bool flag = false;
		if (a*a*a + b*b*b + c*c*c == num)
		{
			cout << "水仙花数为:\t" << num << endl;
		}
		num++;
	} while (num < 1000);
	system("pause");
	return 0;
}
int main17_2()
{
	int num = 0;
	do
	{
		cout << "num = " << num << endl;
		num++;
	} while (num < 10);
	system("pause");
	return 0;
}